SPRITE FRAME

This command will return the frame of the specified sprite.

  Syntax
Return Integer=SPRITE FRAME(Sprite Number)
  Parameters
Sprite Number
Integer
The sprite number

  Returns

This command will return the frame of the specified sprite

  Description

Frames are only returned from animated sprites created with the CREATE ANIMATED SPRITE command. You should specify the Sprite Number as an integer value.

  Example Code
create animated sprite 1,"manwalking.bmp",1,16,16,1
cls
sprite 1,100,100,1
play sprite 1,0,10,100
do
print "sprite frame ",sprite frame(1)
loop
end
  See also

SPRITE Commands Menu
Index